package com.xmy.cultivate.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 学员在读公立学校
 * </p>
 *
 * @author hpiggy
 * @since 2024-10-21
 */
@Data
@TableName("student_read_school")
@ApiModel(value = "StudentReadSchool对象", description = "学员在读公立学校")
public class StudentReadSchool implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty("年份")
    private Integer yearPart;

    @ApiModelProperty("学期")
    private Integer quarterNum;

    @ApiModelProperty("年级")
    private Integer yearClassId;

    @ApiModelProperty("学段")
    private Integer gradeSection;

    @ApiModelProperty("学员id")
    private Long studentId;

    @ApiModelProperty("公立学校id")
    private Long readingSchoolId;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updatedAt;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("创建人id")
    private Long createdId;


    @TableField(exist = false)
    private String readingSchoolName;

}
